package com.obas.model.type;

import com.ease.common.enums.TextualEnum;

public enum ValueRankType implements TextualEnum {

	A("优", "A", 80, 100), //
	B("良", "B", 75, 80), //
	C("中", "C", 50, 75), //
	D("差", "D", 15, 25), //
	E("劣", "E", 0, 15);//

	private String text;
	private String code;
	private int min;
	private int max;

	private ValueRankType(String text, String code, int min, int max) {
		this.text = text;
		this.code = code;
		this.min = min;
		this.max = max;

	}

	public String getText() {
		return text;
	}

	public String getName() {
		return name();
	}

	/**
	 * @return the code
	 */
	public String getCode() {
		return code;
	}

	/**
	 * @return the min
	 */
	public int getMin() {
		return min;
	}

	/**
	 * @return the max
	 */
	public int getMax() {
		return max;
	}
}
